working on publish ami script