some modifications to work on openmind