added login and module APIs