get substitute children working for functionexps