compiler errors fixed, link errors now