some utilities to manage teacher access