improve setup script to write json config file