remove some main functions.
remove unused classes