moved arch_main to kmain as this fits better