conditional read for testing