started work on resource management
more work on resource management