refactor to have usefull init method for dpm2 API