deprecated closures in favor of environments