fix app
rewrite start_shell, fix an extremely obscure problem