rough implementation of flux