added directories and index