removed try-catch block from json parser as it screws things up