bugfix: need to wrap in class name

Couldn't figure out how to use to_hash to 
make it work without doing the explicit wrap