WIP: added retry loop for loading repository