initial commit
added max retry functionality