Separated boot and os code