add missing function for the bang snippet, fixes #17