adding logic to only install on major releases of 5,6,7