fixed mac errors, added os clock lookup