refactored InputFormatLoadingService and around