fixed a number of eclipse warnings