needed to add some options to the hash to handle the issue when they are not specified.