logging is working perfectly now