added extension hooks