added cdgwrapper and set default id to -1