added autoreload mode