add logging in server