rearranged APIs + doc page template