fixing bug with long selects ( & removing files)