same error fixes
returns needed information to client