clean up logger code