initial commit
works with batches. still needs localized scales