now supporting custom redirects instead of hardcoded ones