adding gateway notion