started work on externally callable closures and system variables