updated code so that it downloads directly from repository instead of using a local copy