separate mdinit and append
test for p, test for mdinit_shell