added char support