propogate the right app_shell reference. debug cleanup