give the worker some helper functions