work on in/out support. not used yet, no functionality change.
fix bug that caused lots of error output. saves 2ms, 98ms -> 96ms