make use of repo instead of context