add some tail functionality