updated version to now include OS identification and respective handling