added error handler mixin and added namespace checking to components