made the script actually use the right major and minor