adopted changes in md-init