use navigator for plugin