fix some interface to fit  binary compatibility