initialize resources