remove JSON instances, add read* functions