added MOVED error handling