add entry point to create console script & fix some bug