adds headers
trying to fix a segfault