Add API for tops~
Fix API bug
Added smoke test