update generator and change routes