INCOMPLETE COMMIT___1

still working on the script's main functionality.  this commit is mainly
to save, and should NOT be recalled.