fix adding/exposing ports
export nodeDefinition
add some missing events