Adding error handlers, event dispatchers and branching out validators