bug fixed, using delete_file now