fix bunch on link errors