restructure server