fix file extensions and style