write now accepts optional check_reset.