reworked os lib