MSMS file handling not working properly now