fixed function scope to avoid conflict with other addons