add global snippet