modified process check to allow for arguments