Moved processing to update.sh

now using shared code