converting catorpe from plugin to gem