removed hardcoded linkflag