update errorHandler
rename spawn to async