more work on mjolnir incl. new file cmd.c