write sample config
change to treat config file