Modify open parser to detect more fined fname. Fix read parser copying memory