cleanup
fixed bug in collector daemon