document polymode initialization