make sure we register locals in def forms, and make dealing with the local var a little saner