typo, server var should be named gateway