- added a check for load failure
- use a 'sharedOptions' instead of 'defaults'