made file handling during chart creation more robust and state consitent with existence ie cannot be requested during build.