Maggot-like fly larvae are of wide importance in ecology and medicine ; among other roles, various species are prominent in recycling carrion and garbage, attacking crops and foodstuffs , spreading microbial infections, and causing myiasis .