fixed double assign
appended up.sh setting
fixed export