vec: some cleanup