support for use as a module