added ignore-resource flag