modified:   lib/ami.js