moved all instances of open to 3-arg form