find context of the command process