add logic for finding object create or object append