fix modified package path
rename variables and fix workers' exit when inputs are available