debug for redirects
always returning something even with bad data. Debug added