new multi-layered json config, and streamlining ready for database