initial somewhat working code drop