use dstr instead of char[] with arbitrary size