add more error logging on server