cleans up visibility plug