trainer optimalization impl
recognizer optimalization
login manager optimized
config optimized. last 3 commits introduced some todos in the code