adding subproc tool/function