modified for plugin