before register driver