debug mode on iam script