added autorestart