removed main
catch exception