files, state, optimizations

saving windows, managing outputs, changed sending states