Use better events and remove unused deps

and fix initzialisation (again). also move to the new usage of the
console object