test and fix some aliasing issues