fix the arrangement of directories