flattening directories on client side
smart file filtering implemented