restructure source code files