initial revision. See README for what works