extend model, prepare authentication