prepping up back end for leave.php