cleanup API formatting