set proper dir