fixes #6 - added deadlock retries