fixed external linking