improvment to Mavin.as redir parsing