made encryption optional, put server params into config, default is server = off