ported scripts to *BSD, removed some useless cruft