Merge pull request #2 from gev/master

add callback
refactor uuid generaiton