fixing syntax errors and whatnot with base station code