properly removing files and stuff