main for for x-os