add new directory dist (extended code) and remove directory semantic