simple Flux implementation