changed autorun to a bool