working on subresource support and other smaller features