improve AMR converstion, improve import/export