restructure the directory