make more upstream-compatible: added resetWeightsOnSetup