added error framework for the objects