added current middle code for njit auth