redefine the package main function.