file saving and quotefixes