update read.types implementation and tests