fixes #4: add out state filter