reverted the housekeeping code and non blocking receive