finished add config functionality