implements the merger and better organization codebase.