tweaked version and added delta commands