bleh, buf[1] == map, check for buf[0]