datapath simplification using environment variable