make rules work with multiple file types