added notes to self
cleaned up exit logic in worker