WIP: making var declaration sub-machine