added logMain test and batch option