a little prep work for AJAX