using approriate script to start gateway