cleaned java catch stuff