- initial import of some working code