added resources and friends management