updated version and fixed an exception throwing issue