manage cp and smylink
add tests and fix symlink