add karma and preprocess