scripts for workers and head node