wrap up  allowing for 2 separate locations for repository and cache