remove unused imports, some code style
fix json imports