fixes for partitioning and input_filter logic