minor fixes; added digit boundary check for "action_every"