this way does not work. needs major rewrite of how to use repos