updated global consolez hook to work inside VM