updated to use local plugin