recopied code from VM editing environment

some code didn't transfer. have to develop on the VM, then copy to this
repo manually.