Fix relative issue. Add state json