extracted two more functions from repo routes