move server file and add config