fixed redirect bug, other minor updates