add more snippets, add platform-specific file to init