only actually run if resources are defined