restructure and seperate Phi/Host