edit goals, handle some errors