replace cats with warnings in ash.R