add input/output filter

to ensure running aps only when input changed and
output only when output changed