moved console creation to context
moved manifest handler as singleton
optimized throwing errors
simplfied dispatching events