refactored the load from github into a separate function