de-globalized cur_filename