changed getoption for logdir in request()