worker functions extracted into worker package