updated shell script for snatching events