more progress on add, still needs json object