Design of common output routine APIs