code cleanup
Merge branch 'master' into race-detection