refactor for gh-pages