teacher lib for registration