add support for tails