added sleep to autostart