adding json stringify safe