modified new method on updates.py according to official api