fixed tail, ActiveState/tail has a new behaviour
correct external imports format