workers

- couple of helper functions to remove very common code