implemented checkValid in OProcessWrapper