trying to fix file extension removal