unify all funcs into package
provide api for the package