added json functionality. imports not working