fixed several Idea 13 incompatibilities, introduce mechanism to handle incompatibility