disabled overwriteflag since it was breaking code