fix URL redirect stuff. closes #118 closes #105