IDs are of type long, decimal -> double, add project id
more fixes to match the spec