methods for driver script