allow loading rom from shell.
remove some unused code.