simplifying wrapper around Facebook's Flux implementation