link preprocessing
cleanup