Interactive ask permissions

follow #185
Sorry, I rebased it and made another PR.