added exit with core #bugfix