added retry process, fixed #1