converted from plugin to gem