code: add options to force alignment on gradient or using pure SSD