added error messages to creating a worker