added directory filtering, not working - wip