fixed for automated script