modified server gen files approach