add new common functions script