remove symbolic link and optional code