got static sketches working, misc fixes