removing cast-related things from mingle/ and some other cleanup
removing old parser