save enclosing function as grnt