minor fixes, including valve behaviour changes to make more sense