error handling with option - spec added