opening files in constructor to fail-fast