minor cleanup; script works, but could be faster; might just make it a shell script...