move common functions to pizaid-common.sh