redesigned OfflineModule to determine native flag from file extension