added link/paste mode