code snippets readed from JSON, closes #11