reimplemented flux functionality part 1
reimplemented flux req functionality part2