share handle workaround