fixed linking and sizing issues