added 302 handling..