refactored nameconfig and dataconfig to masterconfig and peerconfig