added resources handler