updated profiling based on pjpersist
added 2 more checks