base stuff for getting something up, now mostly example code