add readonly and flowcontrol support