add params for dir views; fix paths