Logging first revision
added logging for permissions and checks