fixes some filesystem issues