added flux-lib
swiching design in progress