FIX - working with resources