dsm compilation errors fixed