minor changes for AJAX