fixed json defaults in new library and removed some superfluous code