preparation for version handling of gist files + refactoring