Preparing dependencies for switch