better logging in server