initial commit of some working code, not a lot of working code, just some