add setOptions(), closes #1