updated AMI to parser-140117
another fix to if clause for self-termination