working on reducing calls to server when scanning pallets