fixed local linking