material api: looping through groups directly instead of getting names & then getting pipelines in group
material api: should list material only once during listing