initial version of autorerun