script can now be invoked in background (returning correct PID)