refactored .flm loading and archiving