catch trace in ps module virtual function