handle options properly