better error handling
added ruby v dependency