rewirte setting of dirs