added underscore as a dependency and refactored error msgs