added filter functionality. No gui yet though.