detect OS and change config