generic read file
fix issues on manageDR