fixed html output api calls