remove link munging scala code