support old version of plugin