working on support for BSD