started return_result and return_error, added headers with names (not ids though)