automatically install extensions required by dependencies
harden against undefined keys
move common.sh to util dir