fix datoms script