added only_if statement to ame_config