added saving and fixed new object creation