remove duplication
handle reading in on load