move front server to individual file