automatic insertion of conversion nodes