updated shell script to give better info