getting and using options