worck with ag_mode forced