fix status code
add redirect