How to connect headers to BPI M2 Zero?

Recently got the BPI M2 Zero and need to attach something else to it which would require me to use the gpio pins. So i got pin headers which i can solder to the board but they dont seem to align with the holes. They are 1.27mm apart. Is there any way to make it work?