reverted version until I get compile errors fixed.  I didn't realize it had an API change