more work on app config, chaning around strucutre of layers config