minor changes to get this gem to work.  Version 1.0.1.1