missing param in update.gist; more error handling