How to use targets with mapped tasks?