added basic resource manager  structure