make redirect backward compatible