added default value and debug code for iam profiles