already tested elsewhere
refactor without changing behaviour
add .on('node:pattern', callback) to instance api
remove repetition
update built code