Moved processing to update.sh

removed shared code to update