change the method and host arguments to options