starting to parse and send json more correctly