modify prototype to handle exceptions
Merge branch 'master' of github.com:longruiliu/ECR