updateing to work with varible JSON stuffs