updated to datalog 0.3