add custom ResourceWarning