redefine the package main function.

merge with trunk.