added switching from manu to automode after some time