updated the script to echo the current status