make the script a little more robust