changed redundant error messages to exits