raw implementation of the 5 flux functions compiles