[imp]:improve a create method and add a write method