add return value to call_completed, error handling