File dump, ading raw+ref, bug checks