move logic into separate functions, impelement feching all user info