load_amf cleanup