3722: more advanced re/im support