improve interactive script
improved interactive.sh