using errors package