changed timeing seconds not useconds
improved automation