start of file preview support. finish rom loading refactoring