add bsd and fix fedora