handle options