on startup, the hook can not be found in the initial document. Removed the warnings stuff (which threw an error anyway because I mispelled the warnings module [missing the s]).