several changes for checking outID and workDir