getting rid of getHeaders($path)