can now recognise imported directories
on_del() rewritted can now delete anyone of the list