added Merlin-compatibility to singleSliceFunc and target-specific flag