more fixes to instance AMI registration.