flag to control closure conversion