fixed some bugs. still have to kill workers manually