added dependencies
moved in some functions from auth and feed.