set config for different os