Kogmaw plugin + fixes