minor debugging, working great so far, added a bit of echoing to show where in the script things are starting