add phy loader and refactor phy-gl mode