updated for thread start/stop errors