stopping the server from pooping its pants when client flops while sending data. also fixing scope of username and the parameter passed to the fout object