moved static reader functions out of Program class into separate file