add file closing feature...