fixed parsing rulefile