impove echo compatibility