working isomorphic implementation with flux