initial work on resource management (in progress)