set appendToBody as true by default