implement filters for changing directories