moves pole stuff to its own file