little bug fix for redirects and friend functions