still doesn't work - now my code never returns, the script never finishes executing though no idea what it's doing