logs are saving, and being sent to users, refactored