move shell task out from kernel.c