main
support for some badcase