updated for new flux rules