changed preprocess tests, added some gl code