fixed .xim file, and cleaned up parentfunctions2