extract resources