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