added updates to parsing and generating AMI sequences