fixes security issues