add ReadFlags.cpp! missed this file in a prev commit