changes directory layout to module based, breaks dist build