gds new methods, fix bugs