method as workaround for deadlock