added plugin detection