method createMessage now accept an options array