use <code>new CustomEvent</code> pattern please