add groups and path attribute to project elements.