update for py and js