added --timeout and --dir options