finished closure conversion of commands