bug fix: redirect not working for some reason. must investigate this later