add callbackFetchKey for flags
Merge pull request #126 from zedgu/develop

add callbackFetchKey for flags and improve the code