added function, expect, and quoting wrapping.