better timer
small fixes for bugs occurring at starting after stopping