adding centralized error and info messages