need to remove directories first