fix defaults and read type from github
Merge branch 'redirect'