implemented new flexible upload code for configurations