added get-wmcode