wrapping some functions to be forwarded to worker