refactoring management package. put every api in his own module