driver: add some methods in driver