must be "r" or "w"