debugging production wrapper