change run to post fix in lock file and log file
pass enviroment variable to sub process