deleting tables is now handled properly