removed ccode converter and added exceptions