new option appendToBody + reorganized utils