implemented bootstrap() based on kmain context setup