added some cmd line args for pid directory, log directory, etc..