export view engine object instead of view engine class
better error messages