update for cgsdl and gysdl