calling the new gateway backend script