move common function to  pizaid-common.sh