refactors all errors away