deal with package name and main not match