working on API for admin tool