i'm a little confused as to why the events are always being initialized with every command, they should ideally only be once, also where are they shut down?