added logging to goals