pre-compile callbacks for better timings