now almost can run
now there is only a problem about amr