added url redirect stuff