leave out dowrite instead of making a virtual call to connected