add hacky repo-add compat
add a config struct to deduplicate code