separated out ver1 from existing working code.

currently working on ver1 so that I can revert back if needed.