move the os check to serial::params
add generation of config