added boolean to switch on/off GEMs