wip fixing generic type readValue