add sleep when vhost frontend enabled