Added missing uses, fixed some erros and removed headers that break the redirects