use authed user for retrieving repos, tidy up server