sort functions
categorize functions (order by low-level to high-level)
hide some functions
fix test error