INCOME TAXES - Summary of reconciliation of income tax (benefit) provision (Details 1) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Dec. 31, 2016
Sep. 30, 2016
Jun. 30, 2016
Mar. 31, 2016
Dec. 31, 2015
Sep. 30, 2015
Jun. 30, 2015
Mar. 31, 2015
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Income Tax Disclosure [Abstract]                      
Income tax expense (benefit) computed at U.S. corporate tax rate of 34%                 $ (8,384) $ (3,147) $ 903
Adjustments attributable to:                      
Valuation allowance                 4,486 13,053 1,077
Income tax payable adjustments                 210
State income tax                 (50) 13 24
Reserve for uncertain tax positions                 (34) (36) (57)
Goodwill impairment                 3,283    
Nondeductible expenses                 8 19 (1,575)
Other                 141 47
Income tax benefit $ (83) $ (87) $ (234) $ 64 $ (257) $ 10,404 $ 141 $ (386) $ (340) $ 9,902 $ 419