switching to rawrulencode()