Feature/centralize errors