split public and private apis