# Main script location for multiple gateways

**URL:** <https://forum.inductiveautomation.com/t/main-script-location-for-multiple-gateways/52179>\
**Category:** Ignition\
**Created:** [October 20, 2021, 6:51pm UTC](https://forum.inductiveautomation.com/t/main-script-location-for-multiple-gateways/52179 "2021-10-20T18:51:33Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [October 20, 2021, 11:31pm UTC](https://forum.inductiveautomation.com/t/main-script-location-for-multiple-gateways/52179/9 "2021-10-20T23:31:54Z")

</div>

I’d suggest also creating a wrapper function to wrap the system.util.send\* calls so you’re not having to pass in the project name, gateway name, etc. in multiple places and are just passing in the payload (and maybe the function to call as well, see [Calling function on another gateway? - #3 by nminchin](https://forum.inductiveautomation.com/t/calling-function-on-another-gateway/51926/3))

---

_[View the full topic](https://forum.inductiveautomation.com/t/main-script-location-for-multiple-gateways/52179)._
