use layout.batching_macro instead of direct request.sdiapi.get_macro call