return a generated id when running a process