oh I love refactoring! put the linux and BSD code into separat library files, and the configs as well