major overhaul added support for more distributions and oss