v3.8.0.1
Stockholders' equity (Details) - shares
Dec. 31, 2017
Dec. 31, 2016
Stockholders' equity    
Common stock authorized (in shares) 100,000,000 100,000,000
Shares of Common Stock reserved    
Total (in shares) 8,470,000 9,485,000
2001 Plan    
Shares of Common Stock reserved    
Outstanding stock options (in shares) 155,000 1,090,000
2011 Plan    
Shares of Common Stock reserved    
Outstanding stock options (in shares) 1,128,000 1,994,000
Outstanding RSUs (in shares) 3,324,000 3,825,000
Number of shares available for grant (in shares) 3,863,000 2,576,000