updated plugin functionality