add globals snippet