changed network settings for flux
Updated Encoder and Switch Case