resource management

basic definition without a block