clear stuff from memory if file is missing