code + script for runnign on cluster