work in progress for dynamic rules