adding ability to set retry delay