fixed some bugs, started parsing teams' confg