basic resource allocation from blockly