split the add_configuration macro in two less complicated macros "add_object" and "edit_object"