added helper and login methods