fix regression bug that broke create_repo(), also added yet more debug logging