adding logging for security