move all functions from headers into the pxd file