loadwilddata takes 3 params, and fix engine flag parsing.