remove test code for logging