reworking of shell detection and hacks logic