argh, bind lexical environment to functions