fixed incorrect range on minimized received pallets, added session state variables to improve performance