handling exceptions
catching class castexception
catching npe
Merge branch 'engine'