add bird class and improve birdutil