hook to global object