attempt to fix high cpu usage on wait for client message