fixed crashes
updated version code