code refactor
add FB class
implement for FB affinity