simplified the way we find the profiler templates
reverted previous merge partially (closes #6, closes #3, closes #5)