make ref accept characters