work on code snippets and code generator