add hook into setup