added resources functionality
resourcess again