add option to exclude_resources