moved rules into form config