updated for miltiOS purposes