move createSymlinks into function [ci skip]