Fixed bu in too many emits
Only emit in polygon refinement mode
Build process
Added utilities object