adding iam detection with a config lib