ran the script, after a few changes, it appears to be working properly now, will test some more code.