apply paper as accepted in Issaquah
new version for scope guard and unique resource
clean up working directory
dummy checking