fixes to get repo script