possible bug fix in server side input reading