added authentication module and initial magma hookups