extract params and scheme from expressions