improving pageObjectLogging