fewer reconfigure_engine() calls, simplify arem()