add setOptions(), closes #3