some simplification of apis