add apis to mimic common api in real projects.