update code to newest version of verold api