improved exception handling; introduced validation of tosca