changed data writes so each section of data is written async - this will avoid 1 user hogging the connection