Quarterly report pursuant to Section 13 or 15(d)

16. Long term obligations (Details Narrative)

v3.10.0.1
16. Long term obligations (Details Narrative) - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2017
Oct. 01, 2016
Dec. 31, 2016
Debt and capital lease obligations $ 3,846   $ 4,919
Debt maturity date Aug. 18, 2018    
Line of credit outstanding $ 0   10,333
Proceeds from line of credit 3,616 $ 0  
Repayments of line of credit 10,333 2,859  
Debt issuance costs 484 $ 125  
EEI note [Member]      
Debt and capital lease obligations 103   103
PNC Bank [Member]      
Debt and capital lease obligations 0   1,020
AFCO Finance [Member]      
Debt and capital lease obligations 639   0
Susquehanna Bank [Member]      
Debt and capital lease obligations 0   3,242
MidCap financial trust asset based revolving loan [Member]      
Debt and capital lease obligations 3,616   0
PIDC 2.75% note [Member]      
Debt and capital lease obligations 0   287
GE 8.00% notes [Member]      
Debt and capital lease obligations 482   482
AFCO Credit Corp [Member] | Term Loan [Member]      
Debt and capital lease obligations $ 639   0
Debt issuance date Jun. 16, 2017    
Debt face amount $ 1,070    
Debt interest rate description 3.567%    
Energy Efficiency Investments [Member] | Term Loan [Member]      
Debt and capital lease obligations $ 103   103
Debt issuance date Nov. 08, 2016    
Debt face amount $ 7,732    
Debt issuance costs 740    
Unamortized debt issuance costs 604   715
MidCap Financial Trust [Member] | Term Loan [Member]      
Debt and capital lease obligations $ 3,616   0
Debt issuance date May 10, 2017    
Debt interest rate description one month LIBOR plus 4.50%    
Weighted average interest rate 5.66%    
Line of credit outstanding $ 2,517    
Maximum borrowing capacity 12,000    
Available borrowing capacity under the Credit Agreement 2,416   0
Proceeds from line of credit 45,099    
Repayments of line of credit 41,483    
Debt issuance costs 484    
Unamortized debt issuance costs 424    
PNC Bank [Member] | Term Loan [Member]      
Debt and capital lease obligations 0   1,020
Susquehanna Bank [Member] | Term Loan [Member]      
Debt and capital lease obligations $ 0   $ 3,242