fixed error handler in methods and fixed engine update