modify stack.sh for no namespace mode