$dm initialization