specify caller and improve warning message
check filename_pattern also warns
assert we dont warn after a reset