first working version
for some reason, copyting to cmsphys06 from lxbatch does not work