encoding, linking bugfix