added profiling.
fixed subprojects attributed to projects that werent parent projects.