fixed object classes to be passing objects not nsmanagedcontext objects