got json to work... but buggy