change json serialisation
fix file open exception bug