change directory structure to prepare a global XApi package