script is loaded as plugin