moved ks stuff in here to fix build when symlinks dangling