adding support for subProcesses