implement setOptions(), closes #17