restrucutre of mmanage.h and renaming...3