fixed bugs in metrics and added iam support to other checks