cleanup IDE source code
add check for exact version to which apply hacks
move hacks to findSwitch member function if possible
add comment about hacks