added stand-alone mode (for widgetize api)