Minor refactor, working getVersions function, problems with async