add locationcode and fix task bug