realize the delegate to shell

realize the delegate to shell