handle options array

[closes #2]