add current era and error check