refactoring for gh-pages