use after hooks instead