slightly better expression searching (function chaining still not working)