added support for opening more then one tail at once