delay creation of ApiResponse object