implemented a more appropriate file extensions mapping