convert option hashes to Mashes in public API

this will fix #51