added validation method, created pure json config