add plugin and fix map