better hint handling for modify and transform