check for defined output before calling each
fix header for REST API Id