added default goal
fixed find bugs warning