common functions used across pallet projects