move udf into worker package