move common part to fluxexobject
fix constructor