exc: 'snippet' is undefined