updated module to allow for use as plugin