global vars to avoid minihttp segfault